-- GENERATED SPELL FOR [Frenzied Bat] --


function spell0_16036(pUnit, Event) --@Frenzied Dive,n/a--
pUnit:FullCastSpellOnTarget(54781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16036', 6316, 1)
end

function Sorts_16036(pUnit, Event)
local choix_sorts_16036 = math.random(0, 0)
if choix_sorts_16036 == 0 then
pUnit:RegisterEvent('spell0_16036', 1, 1)
end
end

function mob16036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16036', math.random(1500, 3000), 1)
end

function mob16036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16036, 1, 'mob16036_Action')
RegisterUnitEvent(16036, 2, 'mob16036_Leave')
RegisterUnitEvent(16036, 3, 'mob16036_Kill')
RegisterUnitEvent(16036, 4, 'mob16036_Die')
